/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.service;

import com.microsoft.windowsazure.exception.ServiceException;
import com.sigmatrix.h5.entity.DisRebateCondition;
import com.sigmatrix.h5.web.mode.RebateActivityInfo;
import com.sigmatrix.sc.jdbc.common.service.Service;

/**
 *@ClassName: DisRebateConditionService
 *@Description: 
 *@author MH
 *@date 2017年8月17日 上午9:51:08
 */
public interface DisRebateConditionService extends Service<DisRebateCondition,Integer>{
	
	/**
	 * 通过返利策略查询
	 *@Title: findByStrategyId
	 *@Description: 
	 *@return DisRebateCondition
	 *@author MH
	 *@date 2017年8月17日 上午10:04:19
	 *@param strategyId
	 *@return
	 *@throws ServiceException
	 */
	DisRebateCondition findByStrategyId(Integer strategyId);
	
	/**
	 * 
	 *@Title: isSatisfiedCondition
	 *@Description: 判断是否满足触发条件
	 *@return boolean
	 *@author MH
	 *@date 2017年12月6日 下午3:32:27
	 *@param condition
	 *@param value
	 *@return
	 */
	boolean isSatisfiedCondition(DisRebateCondition condition,Integer value);

	DisRebateCondition transformCondition(RebateActivityInfo info);
}
